package com.j2ee.facdtory;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.j2ee.document.Document;

@Component("documentFactory")
public class DocumentFactory {
	
	@Resource(name="wordDocumentImpl")
	private Document document ;
	
	public void read() {
		document.read() ;
	}
	
	public void write() {
		document.write() ;
	}

}
